﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x02000305 RID: 773
	public class TKeepDenseRankClause : TParseTreeNode
	{
		// Token: 0x17000641 RID: 1601
		// (get) Token: 0x06001B6D RID: 7021 RVA: 0x0032F42B File Offset: 0x0032D62B
		public virtual TSourceToken FirstLast
		{
			get
			{
				return this.firstLast;
			}
		}

		// Token: 0x06001B6E RID: 7022 RVA: 0x0032F433 File Offset: 0x0032D633
		public override void init(object arg1, object arg2)
		{
			this.firstLast = (TSourceToken)arg1;
			this.orderBy = (TOrderBy)arg2;
		}

		// Token: 0x17000642 RID: 1602
		// (get) Token: 0x06001B6F RID: 7023 RVA: 0x0032F44D File Offset: 0x0032D64D
		public virtual bool First
		{
			get
			{
				return this.firstLast.ToString().Equals("first", StringComparison.CurrentCultureIgnoreCase);
			}
		}

		// Token: 0x17000643 RID: 1603
		// (get) Token: 0x06001B70 RID: 7024 RVA: 0x0032F465 File Offset: 0x0032D665
		public virtual bool Last
		{
			get
			{
				return this.firstLast.ToString().Equals("last", StringComparison.CurrentCultureIgnoreCase);
			}
		}

		// Token: 0x17000644 RID: 1604
		// (get) Token: 0x06001B71 RID: 7025 RVA: 0x0032F47D File Offset: 0x0032D67D
		// (set) Token: 0x06001B72 RID: 7026 RVA: 0x0032F485 File Offset: 0x0032D685
		public virtual TOrderBy OrderBy
		{
			get
			{
				return this.orderBy;
			}
			set
			{
				this.orderBy = value;
			}
		}

		// Token: 0x06001B73 RID: 7027 RVA: 0x0032F48E File Offset: 0x0032D68E
		public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)
		{
			this.orderBy.doParse(psql, plocation);
		}

		// Token: 0x06001B74 RID: 7028 RVA: 0x0032F49D File Offset: 0x0032D69D
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06001B75 RID: 7029 RVA: 0x0032F4AD File Offset: 0x0032D6AD
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			this.orderBy.acceptChildren(v);
			v.postVisit(this);
		}

		// Token: 0x040019F4 RID: 6644
		private TOrderBy orderBy;

		// Token: 0x040019F5 RID: 6645
		private TSourceToken firstLast;
	}
}
